package com.million.eduservice.service;

import com.million.eduservice.entity.EduSubject;
import com.baomidou.mybatisplus.extension.service.IService;
import com.million.eduservice.entity.vo.subject.SubjectNestedVo;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

/**
 * <p>
 * 课程科目 服务类
 * </p>
 *
 * @author 十麓
 * @since 2022-03-23
 */
public interface EduSubjectService extends IService<EduSubject> {

    /**
     * 上传文件
     * @param file 需要上传的文件
     */
    void saveSubject (MultipartFile file);

    /**
     * 返回一级分类和二级分类  嵌套数据
     * @return list集合
     */
    List<SubjectNestedVo> getAllSubject ();
}
